import { Controller, Get } from '@nestjs/common';
import { UserService } from './user.service';

@Controller('admin/user')
export class UserController {
    constructor(private readonly userService: UserService) { }

    @Get('/user-info')
    async getUserInfo() {
        let userInfo = await this.userService.getUserInfo()
        return userInfo
    }

    @Get('/menus')
    async getMenus() {
        let menus = await this.userService.getUserMenus()
        return menus
    }
}
